package com.syzg.base.merge.model;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

@SuppressWarnings("serial")
public class Groups implements Serializable {
	
	private Long id;
    private String code;
    private String name;
    private Long parentId;
    private String description;
    private Set<PersonGroup> personGroups;

    public Groups(){
        personGroups = new HashSet<PersonGroup>(0);
    }

    public Groups(Long id){
        personGroups = new HashSet<PersonGroup>(0);
        this.id = id;
    }

    public Groups(Long id, String code, String name, Long parentId, String description, Set<PersonGroup> personGroups){
        this.personGroups = new HashSet<PersonGroup>(0);
        this.id = id;
        this.code = code;
        this.name = name;
        this.parentId = parentId;
        this.description = description;
        this.personGroups = personGroups;
    }

    public Long getId(){
        return id;
    }

    public void setId(Long id){
        this.id = id;
    }

    public String getCode(){
        return code;
    }

    public void setCode(String code){
        this.code = code;
    }

    public String getName(){
        return name;
    }

    public void setName(String name){
        this.name = name;
    }

    public Long getParentId(){
        return parentId;
    }

    public void setParentId(Long parentId){
        this.parentId = parentId;
    }

    public String getDescription(){
        return description;
    }

    public void setDescription(String description){
        this.description = description;
    }

    public Set<PersonGroup> getPersonGroups(){
        return personGroups;
    }

    public void setPersonGroups(Set<PersonGroup> personGroups){
        this.personGroups = personGroups;
    }
}